<include file='Index/header'/>
  <script language="javascript" type="text/javascript" src="__PUBLIC__/My97DatePicker/WdatePicker.js"></script>  
<include file='Index/left'/>

    <div class="content">
        
        <div class="header">
            
            <h1 class="page-title">培训信息表管理</h1>
        </div>
        
                <ul class="breadcrumb">
            <li><a href="{:U('Index/Index')}">首页</a> <span class="divider">/</span></li>
            <li class="active">培训信息表管理</li>
        </ul>

        <div class="container-fluid">
            <div class="row-fluid">  
                    
<div class="btn-toolbar">
    <button class="btn btn-primary" onclick="window.location='__CONTROLLER__/Peixunadmin'" ><i class="icon-plus"></i>导入培训表</button>

  <div class="btn-group">
  </div>
</div>
            
<div class="well"id="well2">
    <table class="table table-striped">
      <thead>
        <tr>
          
          <th>序号</th>
          <th>班次编号</th>
          <th>主办单位</th>
          <th>班次名称</th>
          <th>状态</th>
          <th style="width: 26px;"></th>
        </tr>
      </thead>
      <tbody>
          <volist name="list" id="vo">
        <tr>
          <td>{$vo.id}</td>
           <td><a href='javascript:void(0)' onclick="bdshow({$vo['bcbh']})">{$vo.bcbh}</a></td>
          <td>{$vo.zbdw}</td>
          <td>{$vo.bcmc}</td>
          <td><if condition="$vo['md'] eq '1'"><a href="__CONTROLLER__/Xueyuanadmin/bcbh/{$vo.bcbh}"><font color='red'>未导入学员信息</a></a><elseif condition="$vo['md'] eq '2'"/><a href='javascript:void(0)' onclick="listshow({$vo['bcbh']})">资料齐全</a></if></td>
          <td>
              <a href="__CONTROLLER__/Peixunxg/id/{$vo.id}"><i class="icon-pencil"></i></a>
             <a onclick="return confirm('正在删除班次：{$vo.bcbh}，\n删除后不可恢复,请确认是否删除')"href="__CONTROLLER__/del/lb/peixun/id/{$vo.id}"><i class="icon-remove"></i></a>

          </td>
        </tr>

          </volist>

      </tbody>
    </table>
</div>
            
<div class="pagination">
    <ul>
    {$page}
 
    </ul>
</div>
 <div class="modal fade" id="myModal" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
              学员名单
            </h4>
         </div>
          <div>
              <div id='listsp'></div>
      </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>  
                 <div class="modal fade" id="myModal2" tabindex="-1" role="dialog" 
   aria-labelledby="myModalLabel" aria-hidden="true">
   <div class="modal-dialog">
      <div class="modal-content">
         <div class="modal-header">
            <button type="button" class="close" 
               data-dismiss="modal" aria-hidden="true">
                  &times;
            </button>
            <h4 class="modal-title" id="myModalLabel">
              培训信息表
            </h4>
         </div>
          <div>
              <div id='listsp2'></div>
      </div>
      </div><!-- /.modal-content -->
</div><!-- /.modal -->
</div>          
<script type="text/javascript">  
  function listshow(bcbh){
         if(confirm("是否继续上传学员信息")){
          location.href="__CONTROLLER__/Xueyuanadmin/bcbh/"+bcbh+"";
      }else{

   
     $.ajax({
                type: "POST",
                url: "__CONTROLLER__/peixunone",
           
                cache: false,
                data: {
                  bcbh:bcbh  
                    
                },
         
                    success: function(data) {
               
      $('#listsp').html(data);                     
  $('#myModal').modal('show');
  $('#myModal').modal().css({
    width: 'auto',
    height:'500px',
    'margin-left': function () {
       return -($(this).width() / 2);
   }
});
                       }
                    
        
        
        
        })

      }
              }  
               function bdshow(bcbh){
     $.ajax({
                type: "POST",
                url: "__CONTROLLER__/biaodan",
           
                cache: false,
                data: {
                  bcbh:bcbh  
                    
                },
         
                    success: function(data) {
               
     $('#listsp2').html(data);               
  $('#myModal2').modal('show');
  $('#myModal2').modal().css({
    width: 'auto',
   height:'500px',
    'margin-left': function () {
       return -($(this).width() / 2);
   }
});
                       }
                    
        
        
        
        })

   
              }  
</script>

                    
<include file='Index/footer'/>
